package cn.zeng.dto;

import lombok.Data;

import java.util.HashMap;
import java.util.Map;

import static cn.zeng.dto.Color.BLACK;


/**
 * 缺铁性心血管
 *
 * @author zyb
 */
@Data
public class Cardiovascular {

    private String level="中风险";
    private String image= "u4736.png";

    private int age=20;

    private String selfDiabetes="you";
    private String selfDiabetesColor = BLACK.getName();

    private Double bmi=12.;
    private String bmiColor = BLACK.getName();
    private String bmiReference="121";


    /**
     * 总胆固醇
     */

    private Double totalCholesterol=12.;
    private String totalCholesterolColor = BLACK.getName();
    private String totalCholesterolReference="123";


    private Integer fruit=100;
    private String fruitColor = BLACK.getName();
    private String fruitReference="222";

    private String activity="henhao ";
    private String activityColor = BLACK.getName();

    /**
     * 收缩压
     */
    private Integer systolicBloodPressure=12;

    /**
     * 舒张压
     */
    private Integer diastolicBloodPressure=11;
    private String bloodPressureColor = BLACK.getName();
    private String bloodPressureReference="12/12";


    private String smoking="吸烟";
    private String smokingColor = BLACK.getName();

    /**
     * 改善方式
     */
    private String improveWay="问问\t天天\t问问\t而天无二日违法";

    public Map<String, Object> toMap() {
        Map<String, Object> map = new HashMap<>(23);
        map.put("Cardiovascular_level", level);
        map.put("Cardiovascular_image", image);
        map.put("Cardiovascular_age", age);
        map.put("Cardiovascular_selfDiabetes", selfDiabetes);
        map.put("Cardiovascular_selfDiabetesColor", selfDiabetesColor);
        map.put("Cardiovascular_bmi", bmi);
        map.put("Cardiovascular_bmiColor", bmiColor);
        map.put("Cardiovascular_bmiReference", bmiReference);
        map.put("Cardiovascular_totalCholesterol", totalCholesterol);
        map.put("Cardiovascular_totalCholesterolColor", totalCholesterolColor);
        map.put("Cardiovascular_totalCholesterolReference", totalCholesterolReference);
        map.put("Cardiovascular_fruit", fruit);
        map.put("Cardiovascular_fruitColor", fruitColor);
        map.put("Cardiovascular_fruitReference", fruitReference);
        map.put("Cardiovascular_activity", activity);
        map.put("Cardiovascular_activityColor", activityColor);
        map.put("Cardiovascular_systolicBloodPressure", systolicBloodPressure);
        map.put("Cardiovascular_diastolicBloodPressure", diastolicBloodPressure);
        map.put("Cardiovascular_bloodPressureColor", bloodPressureColor);
        map.put("Cardiovascular_bloodPressureReference", bloodPressureReference);
        map.put("Cardiovascular_smoking", smoking);
        map.put("Cardiovascular_smokingColor", smokingColor);
        map.put("Cardiovascular_improveWay", improveWay);
        return map;
    }
}
